﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T_Rbac_Demain
{
    [Table("Job")]
    public class Job:Audit
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public int Jid { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Jname { get; set; }
        /// <summary>
        /// 上级角色
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? JsuperiorRole { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Jalias { get; set; }
        /// <summary>
        /// 父键id
        /// </summary>
        public int Jpid { get; set; }
    }
}
